<include file="Public:pageheader" />
<script src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript">
/*
function changevalue(value){
	$("#class2").empty();
	$("#class2").append('<option>--选择排--</option>');
	var slt=document.getElementById("class2");
	$.get('__URL__/selectrows',{rand:Math.random(),qu:value},function(msg){

		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}
function changevalue2(value){
	$("#class3").empty();
	$("#class3").append('<option>--选择号--</option>');
	var slt=document.getElementById("class3");
	$.get('__URL__/selectnumbers',{rand:Math.random(),pai:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					  
					   var objOption=document.createElement("OPTION");
					   objOption.value=msg[i].id;
					   objOption.text=msg[i].name;
					   slt.add(objOption);				
				}
				
		}
	);
	
}*/

function changevalue(value){
	var slt=document.getElementById("row");
	$.get('__URL__/selectrows',{rand:Math.random(),qu:value},function(msg){
		msg = eval(msg);
				for(var i in msg){
					 var objDiv = document.createElement("div");
					 objDiv.innerHTML = msg[i].name;  
					 $.get('__URL__/selectnumbers',{rand:Math.random(),pai:msg[i].id},function(msg){
							eval(msg);
							var objCheckbox = document.createElement("input");
							objCheckbox.type="checkbox";
							alert(objCheckbox);
							
						 });	
				}
				
		}
	);
}


</script>  
<form action="__APP__/Deposit/seeLocation" method="post" name="form1">
请选择寄存位位置 
<select name="qu" id="class1" onchange="changevalue(this.value)">
<option>--选择区--</option>
<volist name="sections" id="section">
	<option value="{$section.id}">{$section.name}</option>
</volist>
</select>区
<!-- <select name="pai" id="class2" onchange="changevalue2(this.value)">
<option>--选择排--</option>

</select>排
<select name="hao" id="class3">
	<option>--选择号--</option>
</select>号 -->
<div name="row" id="row"></div>
<input type="submit" value="查看"/>
</form>
<include file="Public:footer" />